#include <iostream>
#include <cstdio>
using namespace std;
int main() {
  double a; scanf("%lf", &a);
  printf("%f\n%.5f\n%e\n%g\n", a, a, a, a);
  return 0;
}
